﻿<!DOCTYPE html>
<html>
    
    <head>
        <meta charset="utf-8">
        <title>普通企业详细信息</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="./css/x-admin.css" media="all">
        <link rel="stylesheet" href="./css/backstage.css" media="all"> 
        
          <script src="./js/jquery.min.js"></script>
        
        <script>
		  	$(function(){
		  		comid=window.location.search.split("=")[1];
				$.ajax({
					url:"../admin/findNormaoCompanyById",
					type:"get",
					data:{comid:comid},
					dataType:"json",
					success:function(data){
					 	var c=data.obj;
						$("#comName").html(c.comName);
						$("#contacts").html(c.contacts);
						$("#telephone").html(c.telephone);
						$("#userName").html(c.userName);
						$("#management").html(c.management);

						$("#registerTime").html(c.registerTime); 
					}
				})
		  	});
  	
  	</script>
  	
    </head>   
    <body>
      <div class="wrap">
        <div class="x-nav">
            <div class="title">
              <a><cite>普通企业管理 >> 普通企业信息</cite></a>            
              <a href="ordinary.html" class="back">返回上页</a>
              </div>        
        </div>

        <div class="x-body">
          <form action="" class="fom" method="POST"  enctype="multipart/form-data">
            <table class="detatable infotable">
              <tr> 
                <td  width="15%"> <label> 企业全称 </label></td>
                <td><p id="comName" ></p></td>
              </tr> 
              <tr>
                <td><label>主营项目：</label></td>
                <td  ><p id="management"  ></p></td>
              </tr>
              <tr> 
                <td><label >联 系 人 </label></td>
                <td><p id="contacts"  ></p></td>
              </tr>      
              <tr>
                <td><label>	联系方式  </label></td>
                <td><p id="telephone" ></p></td>
              </tr>           
              <tr>
                <td><label>用  户  名：</label></td>
                <td><p id="userName" ></p></td>
              </tr>             
              <tr>
                <td><label>入驻时间：</label></td>
                <td><p id="registerTime"></p></td>  
              </tr>      

              <tr>                        
                <td></td>
                <td><input type="button" onclick="window.history.back()" class="btn" value="返回上一级"/>   </td>
              </tr>  
              
            </table>
            
          </form>              
      </div>
    </div>
    
    <!-- 把企业改为vip的时候弾出一个输入日期的框 , 美工要调整一下它的样式-->
	<div id="div_vipdate" style="display:none">
	    <input type="date" id="vipbegin" placeholder="vip开始日期">
	    <input type="date" id="vipend" placeholder="vip截止日期">
	    <button>确定</button>
	</div>


    <script src="./lib/layui/layui.js" charset="utf-8">
    </script>
    <script src="./js/x-layui.js" charset="utf-8">
    </script>
    <script>
        layui.use(['form','layer','layedit'], function(){
            $ = layui.jquery;
          var form = layui.form()
          ,layer = layui.layer
          ,layedit = layui.layedit;


            layedit.set({
              uploadImage: {
                url: "./upimg.json" //接口url
                ,type: 'post' //默认post
              }
            })

        //创建一个编辑器
        editIndex = layedit.build('L_content');
        
          

          //监听提交
          form.on('submit(add)', function(data){
            console.log(data);
            layer.alert("保存成功", {icon: 6},function () {
                // 获得frame索引
                var index = parent.layer.getFrameIndex(window.name);
                //关闭当前frame
                parent.layer.close(index);
            });
            return false;
          });
          
          
        });
    </script>
    <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
    </body>

</html>